import java.util.Iterator;

public class MatrixRowIterator implements Iterator<Double>{
	protected Row row;
	protected int count;
	
	public MatrixRowIterator(Row values)
	{
		if(values == null)
			throw new NullPointerException();
		row = values;
		count = 0;
	}
	
	public boolean hasNext() {
		return row.hasNext();
	}

	public Double next() {
		
		return row.next();
	}

	public void remove() {
		throw new UnsupportedOperationException();	
	}

}
